package com.leo.foodmaster.admin.recipe.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;

/**
 * 菜谱模板明细
 *
 * @author Leo
 * @since 1.0.0 2021-10-29
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("recipe_template_details")
@Accessors(chain = true)
public class RecipeTemplateDetailsEntity {
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

    /**
     * 菜品模板Id
     */
	private Long templateId;
    /**
     * 食材Id
     */
	private Long foodMaterialId;
    /**
     * 食材名称
     */
	private String foodMaterialName;
    /**
     * 所属公司Id
     */
	private Long organId;
	/**
	 * 单位
	 */
	@ApiModelProperty(value = "单位")
	private String unitName;
    /**
     * 单人数量
     */
	private Integer amount;

	@ApiModelProperty(value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@ApiModelProperty(value = "修改时间")
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

	@ApiModelProperty(value = "创建人")
	@TableField(fill = FieldFill.INSERT)
	private String creator;

	@ApiModelProperty(value = "修改人")
	@TableField(fill = FieldFill.UPDATE)
	private String updateUser;
}
